<template>
  <view>
    <view class="pp20">
      <!--  -->
      <view class="fa">
        <!-- -->
        <image
          :src="message.staffpic || 'https://web.zouwangyun.cn/yijiantong/images/9f8aec42-7ac3-4c60-a8ae-b0b65c878034.jfif'"
          style="border-radius: 50%"
          class="size_60 mr-10"
        ></image>
        <!--  -->
        <view class="">
          <view class="flexflex" style="align-items: center">
            <view class="f18 mr20">
              {{ message.uname || "李大夫" }}
            </view>
            <view class="f14 mr20">
              {{ message.udepartmentname || "测试科" }}
            </view>
            <view class="f13 c2d" style="background-color: #d7e4f8">
              {{ message.titleName || "主治医生" }}
            </view>
          </view>
          <view class="f12 c84 mt10">
            {{ message.ucompname || "北京第一人民医院" }}
          </view>
        </view>
        <!--  -->
      </view>
      <!-- -->
    </view>
	<!--  -->
    <view class="line"></view>
	<!--  -->
    <view class="pp20 f15">
      <view class="fa" @click="$pub.go('/pages/setUser/setUser')">
        <view class="fa f1">
          <image src="/static/img/note.png" mode="widthFix" class="wid15 mr10">
          </image>
          我的资料
        </view>
        <image src="/static/img/rit.png" mode="widthFix" class="wid6"></image>
      </view>
      <view class="fa mt20" @click="$pub.go('/pages/invite/invite')">
        <view class="fa f1">
          <image
            src="/static/img/share.png"
            mode="widthFix"
            class="wid15 mr10"
          ></image>
          我的邀请
        </view>
        <image src="/static/img/rit.png" mode="widthFix" class="wid6"></image>
      </view>

      <view class="fa mt20" @click="$pub.go('/pages/balance/balance')">
        <view class="fa f1">
          <view class="icon iconfont mr10" style="color: #2d81ff">&#xe782;</view
          >我的余额
        </view>
        <image src="/static/img/rit.png" mode="widthFix" class="wid6"></image>
      </view>

      <view class="fa mt20" @click="$pub.go('/pages/setting/setting')">
        <view class="fa f1">
          <image
            src="/static/img/phone.png"
            mode="widthFix"
            class="wid15 mr10"
          ></image>
          问诊服务设置
        </view>
        <image src="/static/img/rit.png" mode="widthFix" class="wid6"></image>
      </view>
      <view class="fa mt20" @click="$pub.go('/pages/sysSetting/sysSetting')">
        <view class="fa f1">
          <view class="wid15 mr10"> </view>
          设置
        </view>
        <image src="/static/img/rit.png" mode="widthFix" class="wid6"></image>
      </view>
    </view>
  </view>
</template>

<script>
import { mapState, mapActions, mapMutations, mapGetters } from "vuex";
export default {
  data() {
    return {
      message: "",
    };
  },
  onShow() {
    /*  */
    this.message = uni.getStorageSync("userInfo").userInfo;
    // console.log(this.userinfo,"userinfo")
    // console.log(this.$store.state.m_userInfo.userInfo,'uu')
  },
  onNavigationBarButtonTap(e) {
    console.log(e, "e");
    uni.scanCode({
      success: function (res) {
        console.log("条码类型：" + res.scanType);
        console.log("条码内容：" + res.result);
      },
    });
  },
  computed: {
    // ...mapState('m_user',['userinfo'])
  },
  methods: {},
};
</script>

<style>
	.size_60{
		width: 120rpx;
		height: 120rpx;
	}
</style>